﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class VuDieuBLL
    {
        private VuDieuDAL dal;

        public VuDieuBLL()
        {
            try
            {
                dal = new VuDieuDAL();
            }
            catch { throw; }
        }

        public List<VuDieuEntity> getAll()
        {
            try
            {
                return dal.getAll();
            }
            catch { throw; }
        }

        public VuDieuEntity getById(int _id)
        {
            try
            {
                return dal.getById(_id);
            }
            catch { throw; }
        }

        public int addVuDieu(VuDieuEntity _obj)
        {
            try
            {
                return dal.addVuDieu(_obj);
            }
            catch { throw; }
        }

        public int deleteVuDieu(int _id)
        {
            try
            {
                return dal.deleteVuDieu(_id);
            }
            catch { throw; }
        }

        public int updateDieuNhay(VuDieuEntity _obj)
        {
            try
            {
                return dal.updateDieuNhay(_obj);
            }
            catch { throw; }
        }
    }
}
